Query Order
1. Request URL
URL: {APIURL}/api/v1/transaction/queryOrder
- Note: After a transfer in or out, if the API call times out, this interface should be called to check the order status.
2. Request Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| TraceId | string[4-40] | Transaction ID |
- Example:
复制{ "TraceId": "fdsafaagg1234" }
3. Return Result:
| Parameter Name | Type | Description |
|---|---|---|
| ID | string | Platform’s internal unique ID |
| TraceId | string | Transaction ID |
| CreateTime | datetime | Order creation time |
| Pid | int64 | Platform’s internal player ID |
| UserID | string | Operator’s player ID |
| AppID | string | Operator’s identifier |
| Amount | float | Total transfer amount |
| Action | string | in, out, allout (transfer in, transfer out, transfer all out) |
| Error | string | Order execution error message, if “” indicates success |
| Completed | bool | Whether the order has been completed, if false, please wait and try again |
- Normal successful order
- Example:
复制{ "error": "", "data": { "Order": { "TraceId": "fdsafaagg1234", "CreateTime": "2023-12-07T10:55:42.15+08:00", "Pid": 100065, "UserID": "user_id", "AppID": "faketrans", "Amount": 123.45, "Action": "outall", "Error": "", "Completed": true } } } - Order exists but transfer failed
- Example:
复制{ "error": "", "data": { "Order": { "TraceId": "fdsafaagg1234", "CreateTime": "2023-12-07T10:55:42.15+08:00", "Pid": 100065, "UserID": "user_id", "AppID": "faketrans", "Amount": 123.45, "Action": "outall", "Error": "some internal error occur", "Completed": true } } } - Order does not exist
- Example:
复制{ "error": "Order does not exist", "data": null }